﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

class CListMenu
{
    Vector2 vitri;
    public void Initializing()
    {
        vitri = new Vector2(0, 0);
    }
    public void DrawFirst(SpriteBatch sb, Texture2D texture2D_1, int item)
    {
        sb.Draw(texture2D_1, new Vector2(380, 300 + item * (texture2D_1.Height - 5)), Color.White);
    }
    public void Draw(SpriteBatch sb, Texture2D texture2D_1, Texture2D texture2D_2, int item, int i_SelectButton)
    {
        sb.Draw(texture2D_1, new Vector2(380 + vitri.X, 300 + vitri.Y + item * (texture2D_1.Height - 5)), Color.White);
        if (i_SelectButton == item)
            sb.Draw(texture2D_2, new Vector2(380 + vitri.X, 300 + vitri.Y + item * (texture2D_2.Height - 5)), Color.White);

    }
}

